package com.asm.mapper;

import com.asm.pojo.SNV2TfCHIPseq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SNV2TfCHIPseqMapper {
//    new
    List<String> getindexBysnv(String snv);
    List<String> getindexBysample(@Param("tf") String tf) ;

    List<String> getSamples(@Param("snv") String snv, @Param("table") String table);
    List<String> getSamplesBytf(@Param("tf")String tf);

    List<SNV2TfCHIPseq> getDetailTFbindingBySnv(@Param("snv") String snv, @Param("table") String table,@Param("samples")List<String> samples);
    List<SNV2TfCHIPseq> getChIPseqAnalysis1(@Param("tf") String tf,
                                            @Param("table")String table,
                                            @Param("snv")String snv,
                                            @Param("health_status")String[] health_status,
                                            @Param("tissue")String tissue);
    List<SNV2TfCHIPseq> getChIPseqAnalysis1BySearch(@Param("tf") String tf,
                                                    @Param("table")String table,
                                                    @Param("snv")String snv,
                                                    @Param("health_status")String[] health_status,
                                                    @Param("tissue")String tissue,
                                                    @Param("search")String search);
}
